Drupal
code snippets (expand me!)
Bash.sh
CSS.css
JavaScript.js
PHP.php
Python.py
Ruby.rb
Scheme.scm
SQL.sql
XML.xml
函数
文件
binary files are OK too.jpg
index.md
Sample HTML document.html
Sample Markdown document.md
/wiki
code snippets (expand me!)
PHP.php
array(), 'files' => array()); $items = scandir($dir); foreach ($items as $item) { if (in_array($item, $this->_ignore)) { continue; } $path = $dir . DIRECTORY_SEPARATOR . $item; if (is_dir($path)) { $return['directories'][$item] = $this->_getTree($path); continue; } $return['files'][$item] = $item; } uksort($return['directories'], "strnatcasecmp"); uksort($return['files'], "strnatcasecmp"); return array_merge($return['directories'], $return['files']); }